

# n = int(input('n = '))
# m = int(input('m = '))
#
# fm = 1
# for num in range(1,m + 1):
#     fm *= num
# fn = 1
# for num in range(1,n + 1):
#     fn *= num
# fmn = 1
# for num in range(1, m-n+1):
#     fmn *= num
# print(fm // fn // fmn)
#



# 求阶乘
# def factorial(num):
#     result = 1
#     for n in range(1,num+1):
#         result *= n
#     return result
#
# m = int(input('m = '))
# n = int(input('n = '))
# print(factorial(m) // factorial(n) // factorial(m - n))
#
#
# from random import randint
#
# def roll_dice(n=2):
#     total = 0
#     for _ in range(n):
#         total += randint(1,6)
#     return total
#
# def add(a=0,b=0,c=0):
#     return a + b + c
#
# print(roll_dice())
# print(roll_dice(3))
# print(add())
# print(add(1))
# print(add(1,2))
# print(add(1,2,3))
#
# print(add(c = 50,a = 100 ,b = 200))
#
#
#
#
#
# def add(*args):
#     total = 0
#     for val in args:
#         total += val
#     return total
#
# print(add())
# print(add(1))
# print(add(1,2))
# print(add(1,2,3))
# print(add(1,3,5,7,9))
#


def foo():
    print('hello world')

def foo():
    print('good bye')

foo()



from module1 import foo
foo()

from module2 import foo
foo()



import module1 as m1
import module2 as m2

m1.foo()
m2.foo()


from module1 import foo
from module2 import foo
foo()
